from tkinter import *

m = PanedWindow(orient = VERTICAL)
m.pack(fill = BOTH,expand = 1)
top = Label(m,text = "top pane",bg = "blue")
m.add(top)
bottom = Label(m,text = "bottom pane",bg = "red")
m.add(bottom)
mainloop()
